package com.trt.beibei.service;

import com.trt.beibei.model.Sku;
import com.trt.beibei.repository.SkuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tanrentao
 * @date 2021-08-16
 * @desc
 */
@Service
public class SkuService {

    @Autowired
    private SkuRepository skuRepository;

    public List<Sku> getSkuListByIds(List<Long> ids) {
        return this.skuRepository.findAllByIdIn(ids);
    }

}
